<%@ include file="/common/taglibs.jsp" %>

<head>
    <title><fmt:message key="commodityTeamDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='commodityTeamDetail.heading'/>"/>
</head>

<s:form id="commodityTeamForm" action="saveCommodityTeam" method="post" validate="true">
<li style="display: none">
    <s:hidden key="commodityTeam.id"/>
</li>
<s:textfield key="commodityTeam.code" required="true" cssClass="text medium"/>
<s:textfield key="commodityTeam.name" required="true" cssClass="text medium"/>
<s:textfield key="commodityTeam.comments" required="true" cssClass="text medium"/>
<s:checkbox key="commodityTeam.status" required="true" cssClass="text medium"/>

<li class="buttonBar bottom">
    <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
    <c:if test="${not empty commodityTeam.id}">
    <s:submit cssClass="button" method="delete" key="button.delete"
    onclick="return confirmDelete('CommodityTeam')" theme="simple"/>
    </c:if>
    <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
</li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("commodityTeamForm"));
</script>